.PHONY: clean merge

helloos.bin: helloos.asm
	nasm helloos.asm -o helloos.bin

a.img:
	bximage -q -func=create -fd=1.44M a.img

merge: helloos.bin a.img
	dd if=helloos.bin of=a.img bs=512 count=1 conv=notrunc

clean :
	rm -f a.img helloos.bin

run: merge
	qemu-system-i386 -drive file=a.img,index=0,if=floppy,format=raw -boot order=a

debug: merge
	qemu-system-i386 -drive file=a.img,index=0,if=floppy,format=raw -boot order=a -s -S
